package com.sdy.healthcode.h5.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdy.common.utils.DateUtil;
import com.sdy.healthcode.biz.dto.ExpertsAppointmentDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@Accessors(chain = true)
@ApiModel(value = "用户健康码数据")
public class HealthCodeVO {
    
    @ApiModelProperty(value = "姓名")
    private String name;
    
    @ApiModelProperty(value = "健康码类型", allowableValues = "G,Y,R")
    private String hcode;

    @ApiModelProperty(value = "身份 1-就诊患者 2-陪同家属 3-本院人员", allowableValues = "1,2,3")
    private Integer type;
    
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date updateTime;
    
    @ApiModelProperty(value = "二维码图片地址")
    private String qrcodePath;

    @ApiModelProperty(value = "预约时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date appointmentTime;

    @ApiModelProperty(value = "科室预约信息")
    private ExpertsAppointmentDTO expertsAppointment;
}
